var mongoose = require('mongoose');

var util = require('util');

var //account = JSON.parse(fs.readFileSync(path.join(__dirname, '../.account'))),
    account = {
        username: 'kingadmin',
        password: 'iamyourmother'
    },
    dbUri = 'ds055980.mongolab.com:55980/money-jar',
    connUri = util.format(
        'mongodb://%s:%s@%s', account.username, account.password, dbUri
    );

mongoose.connect(connUri);

module.exports = mongoose;
